package com.sinosoft.jwjw.component.service;

import com.github.pagehelper.Page;
import com.sinosoft.jwjw.component.model.DepartMentUser;

import java.util.List;

/**
 *
 */

public interface DepartMentUserService {
    /**
     * 添加用户
     * @param user
     * @return
     */
    int addUser(DepartMentUser user);

    /**
     * 查找全部用户
     * @param pageNum
     * @param pageSize
     * @return
     */
    List<DepartMentUser> findAllUser(int pageNum, int pageSize);

    /**
     * 查找全部用户
     * @param pageNum
     * @param pageSize
     * @return
     */
    Page<DepartMentUser> findAllUserByPage(int pageNum, int pageSize);
}
